package com.example.compose.component

import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Phone
import androidx.compose.material3.Icon
import androidx.compose.runtime.Composable
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.foundation.Image
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource
import com.example.compose.R

@Preview(showBackground = true)
@Composable
fun IconExp() {
    Icon(
        Icons.Default.Phone,
        contentDescription = null,
    )
}


@Preview(showBackground = true)
@Composable
fun ImageExp() {
    val image = painterResource(R.drawable.bg_compose_background)
    Image(
        painter = image,
        contentDescription = null,
        contentScale = ContentScale.Crop,
    )
}